<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
  "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head>
  <title>文件</title>
  <link href="../Styles/styles.css" rel="stylesheet" type="text/css"/>
</head>

<body>
  <h2 id="opening_files_externally">外部编辑器</h2>

  <p class="h2subheading">— 使用打开方式编辑文件 —</p>

  <p>Sigil is a powerful editor but it can’t edit images and it may not have some of the features you use in other editors. In these cases you can edit the file in an external program – and when you save, Sigil will immediately update its copy. This is very useful if you want to quickly edit images or want to edit CSS stylesheets and immediately see how changes affect the layout of your book.</p>
  <p>Sigil 是功能强大的编辑器，但它无法编辑图像，并且可能不具有您在其他编辑器中使用的某些功能。在这种情况下，您可以在外部程序中编辑文件——保存后，Sigil 将立即更新其副本。如果您想快速编辑图像或想要编辑 CSS 样式表，并立即查看更改如何影响您的书籍布局，这将非常有用。</p>

  <p>To edit a file externally, right-click on the file’s name in the Book Browser and choose <span class="menuitem">Open With</span> from the context menu:</p>
  <p>要从外部编辑文件，请在“图书浏览器”中右键单击文件名，然后从上下文菜单中选择 <span class="menuitem">打开方式</span>：</p>

  <div class="image">
    <img alt="external-open-with" src="../Images/external-open-with.png"/>
  </div>

  <p>When you open a file, you first need to choose an application to use with that file type. Each file type (html, image, stylesheet) can define and save up to five different external applications.</p>
  <p>打开文件时，首先需要选择一个用于该文件类型的应用程序。每种文件类型（html，图像，样式表）最多可以定义和保存五个不同的外部应用程序。</p>

  <p>You can then give the application a friendly name that will be used in the menu the next time you use <span class="menuitem">Open With</span>:</p>
  <p>然后，您可以为应用程序提供一个友好的名称，该名称将在您下次使用 <span class="menuitem">打开方式</span> 时在菜单中使用：</p>

  <div class="image">
    <img alt="external-open-name" src="../Images/external-open-name.png"/>
  </div>

  <p>When you next use <span class="menuitem">Open With</span> on the file you will see the friendly names you've given your existing applications, and the option to choose another application. Only five applications can be saved for each file type.</p>
  <p>下次在文件上使用 <span class="menuitem">打开方式</span> 时，您将看到为现有应用程序指定的友好名称，以及选择其他应用程序的选项。每种文件类型只能保存五个应用程序。</p>

  <div class="image">
    <img alt="external-open-with-name" src="../Images/external-open-with-name.png"/>
  </div>

  <div class="tip">
    <p class="tiptext">If you make changes to the file in Sigil while the file is being edited in another program then you may lose data. You should always open the file for editing externally, make the changes, then save and close the file in the external application before making any changes to that file in Sigil.</p>
    <p class="tiptext">如果在另一个程序中编辑文件时在 Sigil 中对该文件进行更改，则可能会丢失数据。在 Sigil 中对该文件进行任何更改之前，您应该始终打开文件以进行外部编辑，进行更改，然后在外部应用程序中保存并关闭该文件。</p>
  </div>
</body>
</html>